//
//  YDHttpClient.h
//  IngCard
//
//  Created by kf on 2017/8/23.
//  Copyright © 2017年 IngDan. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef void (^Block_OnComplete)(BOOL success, NSDictionary* response, NSString *msg);

#define HTTP [YDHttpClient sharedInstance]

@interface YDHttpClient : NSObject
+ (instancetype)sharedInstance;

- (__kindof NSURLSessionTask *)POST:(NSString *)url
                         parameters:(void (^)(NSMutableDictionary * parameters)) parametersConfig
                         onComplete:(Block_OnComplete) onComplete;
@end
